package com.yonyou.cyxdms.basedata.service.dto;

import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;

import java.io.Serializable;


/**
 * <p>
 * 品牌父表
 * </p>
 *
 * @author guorp1
 * @since 2018-11-12
 */

public class CarmasterbrandDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 来源id
     */
    private Long sourceId;
    /**
     * APP_ID
     */
    private String appId;
    /**
     * 名称
     */
    private String name;
    /**
     * 化名
     */
    private String aliasName;
    /**
     * 别名
     */
    private String ename;
    /**
     * url超文本标记
     */
    private String shareUrl;
    /**
     * 首字母
     */
    private String initial;
    /**
     * 轮替
     */
    private String spell;
    /**
     * countryid
     */
    private Integer countryId;
    /**
     * 图片100
     */
    private String img100;
    /**
     * 图片55
     */
    private String img55;
    /**
     * 图片30
     */
    private String img30;
    /**
     * 故事
     */
    private String story;
    /**
     * 说明
     */
    private String introduction;
    /**
     * 是否删除
     */
    private Integer isDeleted;
    /**
     * 访问量
     */
    private Integer pV;
    /**
     * 访问数
     */
    private Integer uV;
    /**
     * 品牌id
     */
    private Integer brandId;
    /**
     * 品牌代码
     */
    private String brandCode;
    /**
     * 是否有效
     */
    private Integer isValid;
    /**
     * 是否进口
     */
    private Integer isImport;
    /**
     * 数据来源
     */
    private Integer sourceChannel;

    public CarmasterbrandDTO() {
        super();
    }


    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }


    public Long getSourceId() {
        return sourceId;
    }


    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }


    public String getAppId() {
        return appId;
    }


    public void setAppId(String appId) {
        this.appId = appId;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getAliasName() {
        return aliasName;
    }


    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }


    public String getEname() {
        return ename;
    }


    public void setEname(String ename) {
        this.ename = ename;
    }


    public String getShareUrl() {
        return shareUrl;
    }


    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }


    public String getInitial() {
        return initial;
    }


    public void setInitial(String initial) {
        this.initial = initial;
    }


    public String getSpell() {
        return spell;
    }


    public void setSpell(String spell) {
        this.spell = spell;
    }


    public Integer getCountryId() {
        return countryId;
    }


    public void setCountryId(Integer countryId) {
        this.countryId = countryId;
    }


    public String getImg100() {
        return img100;
    }


    public void setImg100(String img100) {
        this.img100 = img100;
    }


    public String getImg55() {
        return img55;
    }


    public void setImg55(String img55) {
        this.img55 = img55;
    }


    public String getImg30() {
        return img30;
    }


    public void setImg30(String img30) {
        this.img30 = img30;
    }


    public String getStory() {
        return story;
    }


    public void setStory(String story) {
        this.story = story;
    }


    public String getIntroduction() {
        return introduction;
    }


    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    public Integer getIsDeleted() {
        return isDeleted;
    }


    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }


    public Integer getpV() {
        return pV;
    }


    public void setpV(Integer pV) {
        this.pV = pV;
    }


    public Integer getuV() {
        return uV;
    }


    public void setuV(Integer uV) {
        this.uV = uV;
    }


    public Integer getBrandId() {
        return brandId;
    }


    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }


    public String getBrandCode() {
        return brandCode;
    }


    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }


    public Integer getIsValid() {
        return isValid;
    }


    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }


    public Integer getIsImport() {
        return isImport;
    }


    public void setIsImport(Integer isImport) {
        this.isImport = isImport;
    }


    public Integer getSourceChannel() {
        return sourceChannel;
    }


    public void setSourceChannel(Integer sourceChannel) {
        this.sourceChannel = sourceChannel;
    }


    @Override
    public String toString() {
        return "CarmasterbrandDTO{" +
                "id=" + id +
                ", sourceId=" + sourceId +
                ", appId=" + appId +
                ", name=" + name +
                ", aliasName=" + aliasName +
                ", ename=" + ename +
                ", shareUrl=" + shareUrl +
                ", initial=" + initial +
                ", spell=" + spell +
                ", countryId=" + countryId +
                ", img100=" + img100 +
                ", img55=" + img55 +
                ", img30=" + img30 +
                ", story=" + story +
                ", introduction=" + introduction +
                ", isDeleted=" + isDeleted +
                ", pV=" + pV +
                ", uV=" + uV +
                ", brandId=" + brandId +
                ", brandCode=" + brandCode +
                ", isValid=" + isValid +
                ", isImport=" + isImport +
                ", sourceChannel=" + sourceChannel +
                "}";
    }

    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     *
     * @param poClass dto 需要转换的dto
     * @author guorp1
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     *
     * @param po 需要转换的对象
     * @author guorp1
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "id");
    }

}
